package com.yunc.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 基础部分-用户
 * */
@TableName("sys_user")
@Data
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @NotNull
    private String loginName;

    private String userName;

    @NotNull
    private String userPassword;

    private String headLogo;

    private String deptId;

    private String phone;

    private String mail;

    private String address;

    private Date loginTime;

    private Long loginCount;

    private String ratings;

    private String status;

    private String remark;

    private Date createTime;

    private String removeTag;

    /**
     * 是否在线1=不在线2=在线
     */
    private String lineStatus;

    @TableField(exist = false)
    private String roleIds;

    @TableField(exist = false)
    private String deptCode;

    @TableField(exist = false)
    private String deptName;
}